package com.hserver.docker.dao;

import cn.hserver.plugin.beetlsql.annotation.BeetlSQL;
import com.hserver.docker.bean.Deploy;
import org.beetl.sql.mapper.BaseMapper;
import org.beetl.sql.mapper.annotation.Sql;

import java.util.List;


/**
 * @author hxm
 */
@BeetlSQL
public interface DeployMapper extends BaseMapper<Deploy> {

    @Sql("select * from deploy where uuid=?")
    Deploy getDetail(String uuid);

    @Sql("select * from deploy where name = ? ")
    List<Deploy> getProjectList(String name);
}
